package com.yzjs.base;


import com.yzjs.enumeration.BestPayTypeEnum;

public class RefundRequest {
    private BestPayTypeEnum payTypeEnum;
    private String orderId;
    private Double orderAmount;
    private String userId;

    public RefundRequest() {
    }


    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public BestPayTypeEnum getPayTypeEnum() {
        return this.payTypeEnum;
    }

    public String getOrderId() {
        return this.orderId;
    }

    public Double getOrderAmount() {
        return this.orderAmount;
    }

    public void setPayTypeEnum(BestPayTypeEnum payTypeEnum) {
        this.payTypeEnum = payTypeEnum;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public void setOrderAmount(Double orderAmount) {
        this.orderAmount = orderAmount;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof RefundRequest)) {
            return false;
        } else {
            RefundRequest other = (RefundRequest)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label47: {
                    Object this$payTypeEnum = this.getPayTypeEnum();
                    Object other$payTypeEnum = other.getPayTypeEnum();
                    if (this$payTypeEnum == null) {
                        if (other$payTypeEnum == null) {
                            break label47;
                        }
                    } else if (this$payTypeEnum.equals(other$payTypeEnum)) {
                        break label47;
                    }

                    return false;
                }

                Object this$orderId = this.getOrderId();
                Object other$orderId = other.getOrderId();
                if (this$orderId == null) {
                    if (other$orderId != null) {
                        return false;
                    }
                } else if (!this$orderId.equals(other$orderId)) {
                    return false;
                }

                Object this$orderAmount = this.getOrderAmount();
                Object other$orderAmount = other.getOrderAmount();
                if (this$orderAmount == null) {
                    if (other$orderAmount != null) {
                        return false;
                    }
                } else if (!this$orderAmount.equals(other$orderAmount)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof RefundRequest;
    }


    public String toString() {
        return "RefundRequest(payTypeEnum=" + this.getPayTypeEnum() + ", orderId=" + this.getOrderId() + ", orderAmount=" + this.getOrderAmount() + ")";
    }
}
